package com.ruoyi.service.jpjs.grossprofit.impl;


import com.ruoyi.mapper.jpjs.grossprofit.GrossProfitMapper;
import com.ruoyi.service.jpjs.PublicService;
import com.ruoyi.service.jpjs.grossprofit.GrossProfitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GrossProfitServiceimpl implements GrossProfitService {


    @Autowired
    GrossProfitMapper grossProfitMapper;

    @Autowired
    PublicService publicService;

    @Override
    public List<Map<String, Object>> findPlanList(Map map) {
        List<Map<String, Object>> compList = publicService.findUserComp();
        map.put("compList", compList);
        return grossProfitMapper.findPlanList(map);
    }

    @Override
    public List<Map<String, Object>> findActualList(Map map) {
        List<Map<String, Object>> compList = publicService.findUserComp();
        map.put("compList", compList);
        return grossProfitMapper.findActualList(map);
    }
}
